function [ data ] = loadData2parts( K, image )
%LOADDATA2PARTS Summary of this function goes here
%   Detailed explanation goes here
  [width,height] = size(image);
   fg = zeros(size(image));
   bg = zeros(size(image));
   data = cell(K,1);
  robustThreshold = 255; 
  
  for y = 1 : height
    for x = 1 : width
      fg( x, y) = abs(194.5-image( x, y));
      bg( x, y) = abs(67-image( x, y));
      if fg( x, y ) > robustThreshold
		fg( x, y ) = robustThreshold;
      end
      if bg( x, y ) > robustThreshold
		bg( x, y ) = robustThreshold;
      end
    end
  end
  
  data(1) = {fg};
  data(2) = {bg};
  data(3) = {fg};

end

